window.onload=function(){
	var good=document.getElementById("good");
	
	good.onclick=function(){
		good.innerHTML="赞+1";
		good.style.backgroundColor="yellow";
	}
	var postData = {"submit":"主页"}	;
		$.post('http://118.89.25.120/home.php', postData, function (data) {
									var obj  = JSON.parse(data.trim());	
									console.log(obj);
										$('img').attr("src",obj[2].picture_path);
										$('img').width(1050);
										$('img').height(330);
										$("#tex").text(obj[2].share_content);
										$("#tex").css("font-size","20px");
										//$("#te").css("margin","20px auto");
										$("strong").text(obj[2].canteen);

						});
}
